package com.hy.erp.inventory.service.interfaces ;

import java.util.List ;
import java.util.Map ;

import javax.ejb.Local ;

import com.hy.enterprise.framework.service.business.IBusinessService;
import com.hy.erp.inventory.pojo.Materiel;
import com.hy.erp.inventory.pojo.interfaces.IMateriel;
import com.hy.erp.inventory.service.MaterielService;
import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.entity.AbstractPersistentEntity;
import com.hy.framework.lang.annotation.ImplementsBy;

/**
 * <ul>
 * <li>开发作者：李冰</li>
 * <li>设计日期：2010-10-13；时间：上午09:47:16</li>
 * <li>类型名称：IMaterielService</li>
 * <li>设计目的：</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */
@ Local
@ ImplementsBy ( MaterielService.class )
public interface IMaterielService
									extends
									IBusinessService < IMateriel >
{
	public boolean addMateriel (
									IMateriel materiel ) ;
	public String [] addMateriel (
								Object [] materiel ) ;
	public String [] modifyMateriel (
									Object [] materiel ) ;
		
	public boolean modifyMateriel (
									IMateriel materiel ) ;

	public Integer removeMateriel (
									String [ ] materielUseIds ) ;

	public List < Materiel > findByNamedQuery (
													String queryName ,
													Map < String , Object > parameters ) ;

	public Materiel findUniqueResultByNamedQuery (
													String queryName ,
													Map < String , Object > parameters ) ;
	public List < IMateriel > getAllMateriel();
	
	public List < IMateriel > getMaterielsByIds (
													String [ ] Ids );
	
	public  IMateriel  getMaterielsById(
													String  id );
	public  IMateriel  getMaterielsById(
										AbstractPersistentEntity  baseModel );
	
}
